-- GENERATED SPELL FOR [Mammoth Calf] --


function spell0_24613(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(15550,pUnit)
pUnit:RegisterEvent('Sorts_24613', 679, 1)
end

function Sorts_24613(pUnit, Event)
local choix_sorts_24613 = math.random(0, 0)
if choix_sorts_24613 == 0 then
pUnit:RegisterEvent('spell0_24613', 1, 1)
end
end

function mob24613_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24613', math.random(1500, 3000), 1)
end

function mob24613_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24613_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24613_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24613, 1, 'mob24613_Action')
RegisterUnitEvent(24613, 2, 'mob24613_Leave')
RegisterUnitEvent(24613, 3, 'mob24613_Kill')
RegisterUnitEvent(24613, 4, 'mob24613_Die')
